//
//  SRNavigationController.m
//  SmartRebate
//
//  Created by Yuan on 13-2-28.
//  Copyright (c) 2013年 unionpaysmart.com. All rights reserved.
//

#import "SRNavigationController.h"
#import "CustomNavgationBar.h"

@interface SRNavigationController ()

@end

@implementation SRNavigationController


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self)
    {
        CustomNavgationBar *navgationBar = [[CustomNavgationBar alloc]init];
        [self setValue:navgationBar forKey:@"navigationBar"];
    }
    return self;
}


- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(BOOL)shouldAutorotateToInterfaceOrientation:(UIDeviceOrientation)orientation
{
    if(orientation == UIDeviceOrientationPortrait)
        return YES;
    return NO;
}

@end
